<div data-step="15" data-intro=" " style="display: none;position:absolute;top:-9999px; left:-9999px; "></div>
<div class="buttons">
  <div class="right">
    <input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="button"  data-step="6"  data-intro="第六步:确认订单"  />
  </div>
</div>

<!--
<div id="tips_blok" style="display: none;">
    <h1>注意：</h1>
    <font color='black'>你所部署的应用不仅包括<b>服务器资源</b>，还包括与之关联的<b>网络和公网IP资源</b>，所有资源都按照小时计费并统一从您的账户余额中扣除。如果您需要停止使用应用，请到控制台<b>统一删除</b>包括服务器、网络以及公网IP在内的所有资源。<br/><br/></font>
    <button  class="btn  btn-primary " id="tips_button-confirm" type="button" value="1" data-step="7"  data-intro="第六步:开始部署"><i class="icon-ok"></i>明白，开始部署</button>
</div>
-->

<script type="text/javascript"><!--
$('#button-confirm').bind('click', function() {
    $.ajax({
        type: 'get',
        url: 'index.php?route=deploy/quotas/',
        beforeSend: function() {
            $('#button-confirm').attr('disabled', true);
            $('#button-confirm').after('<span class="wait">&nbsp;<img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
        },
        success: function(json) {
            var json = JSON.parse(json);
            if(json['error']){
                $('#confirm .payment').prepend( "<div class='warning'>"+json['error']+"</div>");
            }else{
            	$.ajax({
	            type: 'get',
	            url: 'index.php?route=payment/cod/confirm',
	            beforeSend: function() {
	                $('#tips_button-confirm').attr('disabled', true);
	                $('#tips_button-confirm').after('<span class="wait">&nbsp;<img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
	            },
	            success: function() {
	                        location = '<?php echo $continue; ?>';
	                    }
        		});

            	/*
                $('#tips_blok').lightbox_me({
                    centered: true
                });
                */
            }
        }
    });
  });


  /*
    $('#tips_button-confirm').bind('click', function() {
        $.ajax({
            type: 'get',
            url: 'index.php?route=payment/cod/confirm',
            beforeSend: function() {
                $('#tips_button-confirm').attr('disabled', true);
                $('#tips_button-confirm').after('<span class="wait">&nbsp;<img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
            },
            success: function() {
                        location = '<?php echo $continue; ?>';
                    }
        });

    });
 */


//--></script>
